package xiaolong.lian.dto;

/**
 * dto 数据传输对象
 * dao层接口的返回值可使用dto类型实现与select字段映射
 * service层、web层可使用dto来传递数据
 */
public class ArticleAuthorDto {
    //例如使用article和author联查

    //article表的一些字段
    private int id;
    private String title;

    //author表的一些字段
    private int author;
    private String name;

    @Override
    public String toString() {
        return "ArticleAuthorDto{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author=" + author +
                ", name='" + name + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getAuthor() {
        return author;
    }

    public void setAuthor(int author) {
        this.author = author;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
